package com.weetop.aklyscan.bean;

import android.os.Parcel;
import android.os.Parcelable;

import lombok.Data;

@Data
public class YouHuiCard implements Parcelable {
    private String uc_id;
    private String type;
    private String discount;
    private String name;
    private String create_at;
    private String end_at;
    private String reach_line;
    private String status;
    private String shop_name;
    private String s_id;
    private String reach_at;
    private String sc_id;


    @Override
    public int describeContents() {
        return 0;
    }

    @Override
    public void writeToParcel(Parcel dest, int flags) {
        dest.writeString(this.uc_id);
        dest.writeString(this.type);
        dest.writeString(this.discount);
        dest.writeString(this.name);
        dest.writeString(this.create_at);
        dest.writeString(this.end_at);
        dest.writeString(this.reach_line);
        dest.writeString(this.status);
        dest.writeString(this.shop_name);
        dest.writeString(this.s_id);
        dest.writeString(this.reach_at);
        dest.writeString(this.sc_id);
    }

    protected YouHuiCard(Parcel in) {
        this.uc_id = in.readString();
        this.type = in.readString();
        this.discount = in.readString();
        this.name = in.readString();
        this.create_at = in.readString();
        this.end_at = in.readString();
        this.reach_line = in.readString();
        this.status = in.readString();
        this.shop_name = in.readString();
        this.s_id = in.readString();
        this.reach_at = in.readString();
        this.sc_id = in.readString();
    }

    public static final Parcelable.Creator<YouHuiCard> CREATOR = new Parcelable.Creator<YouHuiCard>() {
        @Override
        public YouHuiCard createFromParcel(Parcel source) {
            return new YouHuiCard(source);
        }

        @Override
        public YouHuiCard[] newArray(int size) {
            return new YouHuiCard[size];
        }
    };
}
